for i in range(0, 5):
  print((i + 1) * "*  ",)
print()

for i in range(5, 0, -1):
  print((i) * "*  ",)
print()

for i in range(5):
# 打印空格
  for j in range(5 - i):
    print(" ", end=" ")
  for j in range(i*2-1):
    print("*", end=" ")
  print()
